package com.dream.oauth2.repository;

import com.dream.oauth2.model.entity.OAuth2UserInfo;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

public interface OAuth2UserInfoRepository extends JpaRepository<OAuth2UserInfo, Long> {
    
    Optional<OAuth2UserInfo> findByProviderAndProviderUserId(String provider, String providerUserId);
    
    boolean existsByProviderAndProviderUserId(String provider, String providerUserId);
} 